package com.edu.neusoft.users.controller;

import com.edu.neusoft.users.domain.ApplicationRecord;
import com.edu.neusoft.users.service.IApplicationRecordService;
import com.edu.neusoft.users.util.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/applicationRecord")
@Api(value = "ApplicationRecordController" , tags = {"应聘记录管理接口"})
public class ApplicationRecordController {
    @Autowired
    private IApplicationRecordService applicationRecordService;

    @GetMapping("/list")
    @ApiOperation(value = "获取所有应聘记录信息", notes = "返回所有的应聘记录列表信息")
    public AjaxResult list(){
        List<ApplicationRecord> applicationRecordList = applicationRecordService.getAllApplicationRecordList();
        return AjaxResult.success(applicationRecordList);
    }

}